﻿<%@ Page Language="C#"  MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DSNV.aspx.cs" Inherits="ChamCong.Admin.DSNV" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">


</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <sbc:sbcMsgBox ID="sbcMsgBox4" runat="server" UseJQuery="True" />
    <table>
    <tr>
        <td class="style1">Phòng Ban:&nbsp;
                <asp:DropDownList ID="DSPhongBan" runat="server" AutoPostBack="true"
                    DataTextField="TenPB" DataValueField="MaPB" 
                    onselectedindexchanged="DSPhongBan_SelectedIndexChanged">
                </asp:DropDownList>
        </td>
        <td class="style1">Họ và Tên Nhân Viên:&nbsp;
            <asp:TextBox ID="txtTen" runat="server" AutoPostBack="true" ontextchanged="txtTen_TextChange"></asp:TextBox>
        </td>
        <td>
            <asp:Label ID="lbTrangThai" runat="server" Text="Trạng thái tài khoản:"></asp:Label>
            <asp:DropDownList ID="drTrangThai" runat="server" 
                onselectedindexchanged="drTrangThai_SelectedIndexChanged">
                <asp:ListItem Value="1">Đang mở</asp:ListItem>
                <asp:ListItem Value="0">Đã đóng</asp:ListItem>
            </asp:DropDownList>
        </td>
        <td class="style1">
            <asp:Button class="button" ID="btnTatCa" runat="server" Text="Xem Tất Cả" 
                onclick="btnTatCa_Click" />
        </td>
    </tr>
    </table>
        <div>
            <asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" 
                CssClass="childMenu" SkipLinkText="" Visible="False">
                <Items>
                    <asp:MenuItem Text="Thêm nhân viên" Value="" NavigateUrl="~/LanhDao/NhapNV.aspx">
                    </asp:MenuItem>
                    <asp:MenuItem Text="Thêm Danh sách nhân viên" Value="" NavigateUrl="~/LanhDao/ImportDSNV.aspx">
                    </asp:MenuItem>
                </Items>        
            </asp:Menu>
        </div>
    <div style="width: 1100px;">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
                <p>Loading</p>
            </ProgressTemplate>
        </asp:UpdateProgress>
        
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">

            <ContentTemplate>
                <asp:GridView ID="GridView1" runat="server" PageSize="12" AllowPaging="True" 
                    onpageindexchanging="GridView1_PageIndexChanging" 
                    AutoGenerateColumns="False" CellPadding="4" 
                    ForeColor="#333333" GridLines="None" >
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="MaNV" HeaderText="Mã" 
                            SortExpression="MaNV" >
                        </asp:BoundField> 
                        <asp:BoundField DataField="TenNV" HeaderText="Họ Tên" 
                            SortExpression="TenNV" >
                        </asp:BoundField>
                                                             
                        <asp:BoundField DataField="GioiTinh" HeaderText="Giới" 
                            SortExpression="GioiTinh" />
                        <asp:TemplateField HeaderText="Ngày Sinh">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%#AutoConvert(Eval("NgaySinh"))%>'/>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="SoDT" HeaderText="Số ĐT" SortExpression="SoDT" />
                        <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
                        <asp:BoundField DataField="QuocTich" HeaderText="Quốc Tịch" 
                            SortExpression="QuocTich" />
                        <asp:BoundField DataField="CMND" HeaderText="CMND" SortExpression="CMND" />
                        <asp:TemplateField HeaderText="Ngày Vào Làm">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%#AutoConvert(Eval("NgayVaoLam"))%>'/>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="BangCap" HeaderText="Bằng Cấp" 
                            SortExpression="BangCap" />
                        <asp:BoundField DataField="LoaiNV" HeaderText="Loại NV" 
                            SortExpression="LoaiNV" />
                        <asp:TemplateField>
                            <ItemTemplate>                                  
                                <a href="ChiTietNV.aspx?manv=<%# Eval("MaNV") %>">Chi Tiết</a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <a href="ChiTietTK.aspx?manv=<%# Eval("MaNV") %>">Tài Khoản</a>
                            </ItemTemplate>
                        </asp:TemplateField>                                    
                    </Columns>
                    <EditRowStyle BackColor="#2461BF" />
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" CssClass="pager" />
                    <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                </asp:GridView>                
            </ContentTemplate>
        </asp:UpdatePanel>  
        <div>
        <br />
        </div>
        
    </div>

</asp:Content>